package com.tencent.shadow.sample.host.repository.manager;


import com.tencent.shadow.sample.host.http.HttpRequestImpl;
import com.tencent.shadow.sample.host.repository.RootApi;

/**
 * @author xmy
 * @title
 * @remake
 * @create 2021-05-20 15:41
 */
public class BaseManager extends TokenManager {
    private RootApi rootApi;

    public RootApi getRootApi() {
        if (rootApi == null) {
            rootApi = (RootApi) HttpRequestImpl.getInstance().getService(RootApi.class);
        }
        return rootApi;
    }

    public void changeRootApi() {
        rootApi = (RootApi) HttpRequestImpl.getInstance().getService(RootApi.class);
    }

}
